package com.njtoyo.taxi.admin.mapper.master.mapper;

import cn.hutool.core.date.DateTime;
import com.baomidou.dynamic.datasource.annotation.DS;
import com.njtoyo.taxi.admin.library.Const;
import com.njtoyo.taxi.admin.mapper.master.entity.ActivityWaveAllowanceLog;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.njtoyo.taxi.admin.rest.presenter.data.allowance.CustomerTotalPresenter;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.math.BigDecimal;

/**
 * <p>
 * 乘客补贴流水表 Mapper 接口
 * </p>
 *
 * @author Dell
 * @since 2021-07-29
 */
@Repository
@DS(Const.PRIMARY_DS)
public interface ActivityWaveAllowanceLogMapper extends BaseMapper<ActivityWaveAllowanceLog> {

    CustomerTotalPresenter selectAllowance(@Param("startTime") String startTime, @Param("endTime") String endTime);

    BigDecimal selectCustomerAllowance(@Param("startTime") DateTime startTime, @Param("endTime") DateTime endTime);

}
